#!usr/bin/env python  
# -*- coding:utf-8 _*-
""" 
@author:pengfeifu
@file: day_15_regexp.py 
@version:
@time: 2021/11/07 
@email:1324734112@qq.com
@desc： 网络爬虫，常用正则表达式
@function：常用函数
"""

import re

str1 = "共2905条数据 当前:1/194页 首页 上一页 1 2 3 4 5 6 下一页 尾页 "
print(str1)
str_list = re.findall(r"1\/(\d+)页", str1)
print(str_list)

str2 = '<a href="/chengrenav5/103221/read.html" target="_blank"><span>06-26</span>勾引同事 【11P】</a>'
str_list2 = re.findall(r"\<\/span\>(.*)\<\/a\>", str2)
print(str_list2)
